package org.demo2;

public class student {
    public String gender;

    protected String name;
    private int age;

    @Override
    public String toString() {
        return "student{" +
                "gender='" + gender + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public student() {
    }

    public student(String gender, String name, int age) {
        this.gender = gender;
        this.name = name;
        this.age = age;
    }

    protected student(String name){
        this.name=name;
    }

    protected student(int age) {
        this.age = age;
    }

    private student(String name, int age) {
        this.name = name;
        this.age = age;
    }

}
